package app.srong.mapper;

import app.srong.vo.WordBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface WordMapper {

    List<WordBean> getAllWord(@Param("modeId") Integer modeId);

    List<WordBean> getWordByLen(@Param("len") Integer len);

    WordBean getNoTransWord();

    Integer update(@Param("word") WordBean word);
}
